namespace Cos.Core.NHibernate
{
    using System;
    using System.Collections.Generic;

    using Cos.Core.Model.Content;
    
    public class PageDataModel : DataModelBase<Page>
    {
        public PageDataModel() {}

        public virtual DateTime? ApprobationDate { get; set; }

        public virtual string Author { get; set; }

        public virtual DateTime? CreationDate { get; set; }

        // public virtual CultureDataModel Culture { get; set; }

        public virtual string CultureCode { get; set; }

        // public virtual IEnumerable<ElementDataModel> Elements { get; set; }

        public virtual DateTime? LastModified { get; set; }

        // public virtual NavDataModel Nav { get; set; }

        public virtual int NavId { get; set; }

        public virtual int Id { get; set; }

        public virtual string PageName { get; set; }

        public virtual string PageNamePreview { get; set; }

        public virtual bool PageNavEnd { get; set; }

        public virtual string PageStatus { get; set; }

        public virtual bool? PageVisibility { get; set; }

        public virtual bool? PageVisibilityPreview { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as PageDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }

        public override void Fill(Page model)
        {
            throw new NotImplementedException();
        }

        public override Page ToModel()
        {
            throw new NotImplementedException();
        }
    }
}